//
//  ReduceCode.h
//  YSFruit
//
//  Created by iMacOne on 16/4/7.
//  Copyright © 2016年 iMacOne. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>

//typedef void(^block) (void);

@interface ReduceCode : NSObject
//@property (nonatomic,copy) block goblick;
+ (UIButton *)creatBtnWithFrame:(CGRect)rect btnTitle:(NSString *)titleString btnTitleColor:(UIColor *)color btnTitleFont:(int)font btnBackgroundColor:(UIColor *)BGcolor backgroundImage:(UIImage *)image isCorner:(BOOL)corner;

+ (UILabel *)creatLabelWithFrame:(CGRect)rect title:(NSString*)title titleColor:(UIColor *)color font:(int)font textAlignment:(NSTextAlignment)alignment;

+ (UIImageView *)creatImageVeiwWithFrame:(CGRect)rect imageName:(NSString *)imageName isCorner:(BOOL)isCorner;

+(UITextField *)creatTextFieldWithFrame:(CGRect)rect withplaceholder:(NSString *)placehold withMes:(NSString *)mess;

+(UITextField *)creatTextFieldWithFrame:(CGRect)rect PlaceHold:(NSString *)placehold PlaceHoldColor:(UIColor *)color btnTitleFont:(int)font btnBackgroundColor:(UIColor *)BGcolor KeyboardType:(UIKeyboardType)keyboardType  isCorner:(BOOL)corner;
@end
